import request from '@/utils/request'

export function getSecuritiesList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/knowledge/admin/securities/getList',
    method: 'post',
    data: query
  })
}   

export function saveSecurities(query) {
  return request({
    url: '/knowledge/admin/securities/save',
    method: 'post',
    data: query
  })
}

export function removeSecurities(query) {
  return request({
    url: '/knowledge/admin/securities/remove',
    method: 'post',
    data: query
  })
}
export function getSecuritiesDetail(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/knowledge/admin/securities/getDetail',
    method: 'post',
    data: query
  })
}